// SmartPVMonitor.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "SmartPVMonitor.h"
#include "MainFrameUI.h"

int APIENTRY _tWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine,int nCmdShow)
{
	CPaintManagerUI::SetInstance(hInstance);
	CDuiString szPath = CPaintManagerUI::GetInstancePath();
	szPath += _T("skin");
	CPaintManagerUI::SetResourcePath(szPath);

	CMainFrameUI* pFrame = new CMainFrameUI();
	if( pFrame == NULL ) 
		return -1;
	pFrame->Create(NULL, _T("Server1.0"), UI_WNDSTYLE_FRAME,0L);
	pFrame->CenterWindow();
	::ShowWindow(pFrame->GetHWND(),SW_SHOW);

	CPaintManagerUI::MessageLoop();

// 	delete pFrame;
	::CoUninitialize();
	return 0;
}
